package com.whli.autumn.mall.web.controller.convert.wms;

import com.whli.autumn.mall.wms.domain.dto.warehouselocation.WarehouseLocationAddDTO;
import com.whli.autumn.mall.wms.domain.dto.warehouselocation.WarehouseLocationUpdateDTO;
import com.whli.autumn.mall.wms.domain.entity.WarehouseLocation;
import com.whli.autumn.mall.wms.domain.vo.warehouselocation.WarehouseLocationVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * <p>库位信息转换工具</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023-04-09 08:37
 */
@Mapper
public interface WarehouseLocationConvert {

    WarehouseLocationConvert INSTANCE = Mappers.getMapper(WarehouseLocationConvert.class);

    WarehouseLocation addToDomain(WarehouseLocationAddDTO dto);

    WarehouseLocation updateToDomain(WarehouseLocationUpdateDTO dto);

    WarehouseLocationVO domainToVO(WarehouseLocation entity);

}
